package com.longge;

public class ThreeConsecutiveOdds {

    public boolean threeConsecutiveOdds(int[] arr) {

        if (arr.length<3) return false;
        int count = 0;
        for (int i : arr) {
            if (i%2==1){
                count++;
                if (count>=3) return true;
            }else {
                count = 0;
            }
        }
        return false;
    }

}
